<template>
  <div class="product">
    <h3>标题：{{pron}}</h3>
    <p>价格: {{proprice}}元一根</p>
    <p>描述: {{desc}}<button @click="bargain">砍一刀</button></p>
  </div>
</template>

<script>
export default {
    name:'MyProdact',
    props:['pron','desc','proprice','del',],
    methods:{
        bargain(){
            this.$emit('bargain',this.del)
        },
    },
};
</script>

<style scoped lang="less"></style>
